package com.sjd.mall.domain;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * sjd_goods_comment
 * @author s
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SjdGoodsCommentDO implements Serializable {
    private static final long serialVersionUID = -3256527705668257231L;
    /**
     * 自增id
     */
    private Long goodsCommentId;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 评论用户
     */
    private Long userId;

    /**
     * 评论等级
     */
    @NotNull(message = "评论等级不可为空")
    private Integer commentLevel;

    /**
     * 评论内容
     */
    private String commentStr;

    /**
     * 父评论id，0为没有父评论
     */
    private Long parentId;

    /**
     * 是否删除
     */
    private Boolean isDelete;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 评论照片 jsonArray
     */
    private String commentPicture;

}